<template>
  <div class="container">
    <div class="productMain">
      <headerCommon></headerCommon>
    </div>
    <div class="bannerImg">
      <img :src="require('@/assets/product/productBaner.png')" alt="" />
    </div>
    <!-- 产品 -->
    <div class="mainPro">
      <div class="mainItem">
        <div class="proItem">
          <img :src="require('@/assets/product/cdxlTop.png')" alt="" width="1200" height="102" />
        </div>
        <div class="productItem">
          <img :src="require('@/assets/product/cpzq.png')" alt="" width="" />
          <div class="productRed">
            <p>门磁/红外体感/烟感/煤气/水浸等</p>
            <h2>四大类别，超20+款智能产品</h2>
            <span>点击了解更多></span>
          </div>
        </div>
      </div>
      <!--  -->
      <div class="mainItem">
        <div class="proItem">
          <img :src="require('@/assets/product/cdxlTop.png')" alt="" width="1200" height="102" />
        </div>
        <ul class="goodsBox w1200">
          <li v-for="i in 6">
            <div class="goodSitem">
              <div class="goodSitem-top" @click="linkTo(item)">
                <img :src="require('@/assets/product/CD08.png')" alt width="230" height="200" />
                <p class="title">4g全网通旗舰机型</p>
                <span class="desc">
                  活力长者的时尚单品，适老化界面设计
                </span>
              </div>
              <div class="addShopcar">
                <span>4g全网通</span>
                <span>超长待机</span>
                <span>精准定位</span>
                <span>健康监测</span>
              </div>
            </div>
          </li>
        </ul>
      </div>
      <!--  -->
      <div class="mainItem">
        <div class="proItem">
          <img :src="require('@/assets/product/fyTOP.png')" alt="" width="1200" height="102" />
        </div>
        <ul class="fyMainPro w1200">
          <li>
            <div class="fyContent">
              <img :src="require('@/assets/product/CD08.png')" alt width="230" height="200" />
              <div class="fyText">
                <p class="title">4g全网通旗舰机型</p>
                <span class="desc">
                  活力长者的时尚单品，适老化界面设计
                </span>
                <div class="addShopcar">
                  <span>4g全网通</span>
                  <span>超长待机</span>
                  <span>精准定位</span>
                  <span>健康监测</span>
                </div>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
import headerCommon from '@/components/common/headerCommon'
export default {
  components: {
    headerCommon,
  },
}
</script>
<style scoped lang="less">
.container {
  height: 100%;
  width: 100%;
  .bannerImg {
    > img {
      text-align: center;
      width: 100%;
      margin: 0 auto;
    }
  }
}
.mainPro {
  background: #f8f8f8;
  .mainItem {
    .proItem {
      > img {
        display: block;
        width: 1200px;
        margin: 0 auto;
        text-align: center;
      }
    }
    .productItem {
      width: 1200px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      > img {
        width: 700px;
      }
    }
  }
  .goodsBox {
    flex-wrap: wrap;
    display: flex;
    > li {
      padding: 16px;
      background: #ffffff;
      box-shadow: 0px 2px 7px rgba(0, 0, 0, 0.1);
      opacity: 1;
      border-radius: 15px;
      width: 272px;
      margin: 8px;
      transition: all 0.3s;
      box-sizing: border-box;
      &:hover {
        margin-top: -3px;
        box-shadow: 4px 4px 10px #e8e8e8;
      }
      &:last-of-type {
        margin-right: 0;
      }
      .goodSitem {
        .goodSitem-top {
          cursor: pointer;
        }
        .title {
          font-size: 16px;
          font-family: var(--font-family);
          font-weight: 500;
          line-height: 25px;
          color: #383938;
        }
        .desc {
          display: inline-block;
          font-size: 14px;
          font-family: var(--font-family);
          font-weight: 400;
          color: #666;
        }
        .addShopcar {
          > span {
            margin-top: 10px;
            border: 1px solid #f00;
            margin: 5px;
            font-size: 12px;
            display: inline-block;
            padding: 4px 5px;
            color: #f00;
          }
        }
      }
    }
  }
}
</style>
